# -*- coding: utf-8 -*-
"""
Created on Tue Jan 23 10:36:42 2018

@author: lizheng
"""

from sklearn.linear_model import PassiveAggressiveClassifier

import sys
sys.path.append("/root/spbm/model")
import model as sp

model= PassiveAggressiveClassifier(C=1,max_iter=100000,loss = 'squared_hinge',average=True,n_jobs=-1),#71.6

'''
fitby_model(filename,filename2,model,size,modelsave_filename)
filename训练数据源路径
filename2测试数据源路径
models 模型
size 迭代器大小
modelsave_filename 模型保存路径
'''


sp.fitby_linear_model('/root/spbm/data/20180122_train.csv','/root/spbm/data/20180122_test.csv',model,1000000,'/root/spbm/model/20180122.pkl.gz')
